def is_prime(num):
    """判断一个数是否是素数"""
    for i in range(2, int(num ** 0.5) + 1):
        if num % i == 0:
            return False
    return True if num != 1 else False
